package com.gs.xbinfomytest.entity.dsl;

import com.gitee.hengboy.mybatis.enhance.dsl.expression.ColumnExpression;
import com.gitee.hengboy.mybatis.enhance.dsl.expression.TableExpression;
import com.gs.xbinfomytest.entity.SysUser;

/**
 * 用户信息表
 * @author ApiBoot Mybatis Enhance Codegen
 */
public class DSysUser extends TableExpression<SysUser> {

    public DSysUser(String root) {
        super(root);
    }

    public static DSysUser DSL() {
        return new DSysUser("sys_user");
    }

    /**
     * 用户ID
     */
    public ColumnExpression userId = new ColumnExpression("user_id", this);
    /**
     * 部门ID
     */
    public ColumnExpression deptId = new ColumnExpression("dept_id", this);
    /**
     * 登录账号
     */
    public ColumnExpression loginName = new ColumnExpression("login_name", this);
    /**
     * 用户昵称
     */
    public ColumnExpression userName = new ColumnExpression("user_name", this);
    /**
     * 用户类型（00系统用户）
     */
    public ColumnExpression userType = new ColumnExpression("user_type", this);
    /**
     * 用户邮箱
     */
    public ColumnExpression email = new ColumnExpression("email", this);
    /**
     * 手机号码
     */
    public ColumnExpression phonenumber = new ColumnExpression("phonenumber", this);
    /**
     * 用户性别（0男 1女 2未知）
     */
    public ColumnExpression sex = new ColumnExpression("sex", this);
    /**
     * 头像路径
     */
    public ColumnExpression avatar = new ColumnExpression("avatar", this);
    /**
     * 密码
     */
    public ColumnExpression password = new ColumnExpression("password", this);
    /**
     * 盐加密
     */
    public ColumnExpression salt = new ColumnExpression("salt", this);
    /**
     * 帐号状态（0正常 1停用）
     */
    public ColumnExpression status = new ColumnExpression("status", this);
    /**
     * 删除标志（0代表存在 2代表删除）
     */
    public ColumnExpression delFlag = new ColumnExpression("del_flag", this);
    /**
     * 最后登陆IP
     */
    public ColumnExpression loginIp = new ColumnExpression("login_ip", this);
    /**
     * 最后登陆时间
     */
    public ColumnExpression loginDate = new ColumnExpression("login_date", this);
    /**
     * 创建者
     */
    public ColumnExpression createBy = new ColumnExpression("create_by", this);
    /**
     * 创建时间
     */
    public ColumnExpression createTime = new ColumnExpression("create_time", this);
    /**
     * 更新者
     */
    public ColumnExpression updateBy = new ColumnExpression("update_by", this);
    /**
     * 更新时间
     */
    public ColumnExpression updateTime = new ColumnExpression("update_time", this);
    /**
     * 备注
     */
    public ColumnExpression remark = new ColumnExpression("remark", this);
    @Override
    public ColumnExpression[] getColumns() {
        return new ColumnExpression[]{userId, deptId, loginName, userName, userType, email, phonenumber, sex, avatar, password, salt, status, delFlag, loginIp, loginDate, createBy, createTime, updateBy, updateTime, remark};
    }

}

